package handler

import (
	"bytes"
	"encoding/binary"
	"github.com/cz-it/gonnectd/src/proto"
)

type Login struct {
}

func NewLogin() *Login {
	login := new(Login)
	return login
}

func (login *Login) Proc(body proto.Body) []byte {
	buf := new(bytes.Buffer)
	binary.Write(buf, binary.BigEndian, uint8(1))
	return buf.Bytes()
}
